package com.ssh.test;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.ssh.dao.UserDao;

public class sshtest {
	
	private ClassPathXmlApplicationContext ctx;
	

	@Before
	public void setUp(){
		ctx = new ClassPathXmlApplicationContext("spring.xml");
	}
	
	@Test
	public void test1(){
			 UserDao userDao = ctx.getBean("userDaoImpl", UserDao.class);		
			// userDao.addUser();
	}
	
	@After
	public void tearDown(){
		
	}
}
